package com.lagou.service;

import com.lagou.pojo.VeriCode;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.boot.actuate.endpoint.annotation.Selector;

import java.util.List;

public interface CodeMapper {

    @Select("select * from lagou_auth_code where 1")
    List<VeriCode> findAll();

    @Insert("insert into lagou_auth_code (email, code) values (#{email}, #{code})")
    Integer addCode(VeriCode veriCode);

}
